// 平台属性管理
import request from '@/utils/request'
 
//一级分类
export const reqC1 = () => request({url:`/admin/product/getCategory1`,method:'get'})
//一级分类
export const reqC2 = (category1Id) => request({url:`/admin/product/getCategory2/${category1Id}`,method:'get'})
//一级分类
export const reqC3 = (category2Id) => request({url:`/admin/product/getCategory3/${category2Id}`,method:'get'})
//展示某一个分类的属性与属性值
export const reqAttr = (category1Id,category2Id,category3Id) => request({url:`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,method:'get'})
// 添加/修改属性
export const reqAddOrUpdataAttr =  (data) =>request({url:'/admin/product/saveAttrInfo',method:'post',data})
// 删除属性与属性值
export const reqDeleteAttr = (attrId) => request({url:`/admin/product/deleteAttr/${attrId}`,method:'delete'})